//
//  ImageCollectionViewCell.m
//  YellowBridge
//
//  Created by 王右 on 2018/12/3.
//  Copyright © 2018 王右. All rights reserved.
//

#import "ImageCollectionViewCell.h"

@interface ImageCollectionViewCell ()


@end

@implementation ImageCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setType:(ImageCellType)type{
    switch (type) {
        case ImageCellTypeNormal:
            _deleteButton.hidden = YES;
            break;
         case ImageCellTypeCanDelete:
            _deleteButton.hidden = NO;
            break;
        default:
            _deleteButton.hidden = YES;
            _imageView.image = [UIImage imageNamed:@"加图片"];
            break;
    }
}



@end
